package org.linlinjava.litemall.db.service;

import org.linlinjava.litemall.db.dao.AgedmallSupportAftersaleMapper;
import org.linlinjava.litemall.db.domain.AgedmallSupportAftersale;
import org.linlinjava.litemall.db.domain.AgedmallSupportAftersaleExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AgedmallSupportAftersaleService {
    @Resource
    private AgedmallSupportAftersaleMapper agedmallSupportAftersaleMapper;

    public List<AgedmallSupportAftersale> queryByGoodIdAndStoreId(Integer goodsId, Long storeId) {
        AgedmallSupportAftersaleExample example = new AgedmallSupportAftersaleExample();
        example.or().andDeletedEqualTo(false)
                .andGoodsIdEqualTo(goodsId)
                .andStoreIdEqualTo(storeId);
        return agedmallSupportAftersaleMapper.selectByExample(example);
    }
}
